//
//  RTBaseViewController+HUDInterceptor.m
//  AutobotsPlugin
//
//  Created by 张志恒 on 16/11/7.
//  Copyright © 2016年 Autohome. All rights reserved.
//

#import "RTBaseViewController+HUDInterceptor.h"
#import <objc/runtime.h>

@implementation RTBaseViewController (HUDInterceptor)

- (RTHUDInterceptor *)HUDInterceptor
{
    RTHUDInterceptor *HUD = objc_getAssociatedObject(self, @selector(HUDInterceptor));
    if (!HUD) {
        HUD = [[RTHUDInterceptor alloc] init];
        objc_setAssociatedObject(self, @selector(HUDInterceptor), HUD, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
    }
    return HUD;
}

@end
